package tests.impl;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import auction.Account;
import auction.impl.UserImpl;

public class UserImplTest {

	private UserImpl u;
	private final String FIRSTNAME = "Mystik";
	private final String LASTNAME = "Moustik";
	private final String PASS = "truc";
	private final String ADRESSMAIL = "bigMoustik@moust.mo";
	private final String ADRESS = "25 rue des moustiques";
	
	@Before
	public void setUp() throws Exception {
		u = new UserImpl(FIRSTNAME,LASTNAME,ADRESSMAIL,PASS,ADRESS);
	}

	@After
	public void tearDown() throws Exception {
		u = null;
	}

	@Test
	public void testUserImpl() {
		String firstName = u.getFirstName();
		String lastName = u.getLastName();
		String mail = u.getEmail();
		String pass = u.getPassword();
		String adress = u.getAdress();
		assertEquals(FIRSTNAME, firstName);
		assertEquals(LASTNAME, lastName);
		assertEquals(ADRESSMAIL, mail);
		assertEquals(PASS, pass);
		assertEquals(ADRESS, adress);
	}

	@Test
	public void testGetAccountImpl() {
		Account acc = u.getAccount();
		fail("Not yet implemented");
	}

	@Test
	public void testGetAccount() {
		fail("Not yet implemented");
	}

	@Test
	public void testGetBids() {
		fail("Not yet implemented");
	}

	@Test
	public void testGetJoinedAuctions() {
		fail("Not yet implemented");
	}

	@Test
	public void testPersonImpl() {
		fail("Not yet implemented");
	}

	@Test
	public void testGetAdress() {
		fail("Not yet implemented");
	}

	@Test
	public void testGetEmail() {
		fail("Not yet implemented");
	}

	@Test
	public void testGetFirstName() {
		fail("Not yet implemented");
	}

	@Test
	public void testGetLastName() {
		fail("Not yet implemented");
	}

	@Test
	public void testGetPassword() {
		fail("Not yet implemented");
	}

}
